package com.ethink.mdm.api;

import com.ethink.mdm.api.info.CustomerInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * mateSku Facade接口
 *
 * @author default
 * @date 2022-10-31
 */
@FeignClient(name = "ethink-mdm-service", path = "mdm-service/facade/v1/customer", contextId = "customerFacade")
public interface CustomerFacade {

    @PostMapping("/listCustomer")
    @ResponseBody
    List<CustomerInfo> listCustomer();

    @PostMapping("/listCustomerByCodeList")
    @ResponseBody
    List<CustomerInfo> listCustomerByCodeList(@RequestBody List<String> codeList);


}